package com.feng.chat.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Data;

/**
 * <p>
 * 聊天对话记录（投票消息统计表）
 * </p>
 *
 * @author dyf
 * @since 2022-05-31
 */

@Data
@TableName("talk_records_vote_answer")
public class TalkRecordsVoteAnswer implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 答题ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 投票ID
     */
    private Integer voteId;

    /**
     * 用户ID
     */
    private Integer userId;

    /**
     * 投票选项[A、B、C 、D、E、F]
     */
    private String answerOption;

    /**
     * 答题时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdAt;


}
